package com.itcam.lease.web.app.mapper;

import com.itcam.lease.model.entity.ApartmentInfo;
import com.itcam.lease.web.app.vo.apartment.ApartmentItemVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;

@Mapper
public interface ApartmentInfoMapper extends BaseMapper<ApartmentInfo> {

    /**
     * 根据公寓id查询公寓信息
     * @param apartmentId
     * @return
     */
    ApartmentItemVo selectApartmentItemVoById(Long apartmentId);

    ApartmentInfo selectApartmentById(Long id);

    BigDecimal selectMinRentByApartmentId(Long id);
}




